package com.cjq.allservice.service.impl;

import com.cjq.allservice.entity.OrderDetail;
import com.cjq.allservice.entity.vo.OrderVo;
import com.cjq.allservice.mapper.OrderDetailMapper;
import com.cjq.allservice.service.OrderDetailService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author cjq
 * @since 2022-03-24
 */
@Service
public class OrderDetailServiceImpl extends ServiceImpl<OrderDetailMapper, OrderDetail> implements OrderDetailService {

    @Autowired
    OrderDetailMapper orderDetailMapper;

    @Override
    public List<OrderVo> getOrderVo(String orderId) {
        List<OrderVo> allOrderDetail = orderDetailMapper.getAllOrderDetail(orderId);
        return allOrderDetail;
    }
}
